<template>
  <li class="item-data">
    <div class="item-data-box">
      <div class="itemImg">
        <img :src="com + '.' + data1.coverImg" alt="" class="cover-img" />
      </div>
      <div class="itemtxt">
        <p>{{ data1.name }}</p>
      </div>
      <div class="itemnum">
        <span>{{ data1.coin }}</span>
        <div class="item-numImg">
          <img src="../assets/img/monad.png" alt="" />
        </div>
      </div>
      <div class="item-change">立即兑换</div>
      <img src="../assets/img/section_hot.png" alt="" class="item-fiery" />
    </div>
  </li>
</template>

<script>
export default {
  props: ["data1"],
  data() {
    return {
      com: "http://sc.wolfcode.cn",
    };
  },
};
</script>

<style lang='less' scoped>
.item {
  margin-top: 20px;
  //   padding-top: 20px;
  box-sizing: border-box;
  .item-list {
    zoom: 1;
    width: 1300px;
    .item-data {
    //   height: 412px;
      position: relative;
      //   float: left;
      margin-right: 20px;
      cursor: pointer;

      .item-data-box {
        position: relative;
        width: 285px;
        // height: 412px;
        // padding-bottom: 32px;
        margin-top: 40px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: #fff;
        transition: all 0.8s ease;
        .item-fiery {
          position: absolute;
          left: 0;
          top: 0;
        }
        &:hover {
          transform: translateY(-15px);
          .item-change {
            background: #0a328e;
            color: #fff;
          }
        }
        .itemImg {
          position: relative;
          width: 100%;
        }
        .itemtxt {
          height: 88px;
          display: flex;
          flex-direction: row;
          align-items: center;
          p {
            font-size: 18px;
            font-weight: normal;
            font-stretch: normal;
            line-height: 23px;
            letter-spacing: 0px;
            color: #333333;
            padding: 22px 35px 0;
            box-sizing: border-box;
            overflow: hidden;
            text-overflow: ellipsis;
          }
        }
        .itemnum {
          font-family: SourceHanSansSC-Bold;
          font-size: 18px;
          font-weight: normal;
          font-stretch: normal;
          line-height: 23px;
          letter-spacing: 0px;
          padding-top: 15px;
          box-sizing: border-box;
          color: #fd604d;
          display: flex;
          flex-direction: row;
          align-items: center;
          .item-numImg {
            width: 20px;
            height: 20px;
            margin-left: 5px;
            display: inline-block;
            img {
              width: 100%;
              display: block;
              border: none;
            }
          }
        }
        .item-change {
          width: 100px;
          height: 36px;
          border: solid 1px #0a328e;
          text-align: center;
          line-height: 36px;
          font-size: 18px;
          font-weight: normal;
          font-stretch: normal;
          letter-spacing: 0px;
          color: #0a328e;
          margin-top: 20px;
        }
      }
    }
    .item-data:nth-child(4n) {
      margin: 0;
    }
  }
  .cover-img {
    width: 100%;
    height: 331px;
    display: block;
  }
}
</style>